package com.rfid.project.model;

import javax.persistence.*;

import biz.core.IdEntity;

import java.util.Date;

@Entity
public class ProjectDelivery extends IdEntity {
	// 项目
	@ManyToOne
	@JoinColumn(name = "ProjectID")
	private Project project;

	// 产品
	@ManyToOne
	@JoinColumn(name = "ProductID")
	private Product product;

	// 录入人
	@ManyToOne
	@JoinColumn(name = "InputPersonID")
	private People inputPerson;

	// 审核人
	@ManyToOne
	@JoinColumn(name = "CheckPersonID")
	private People checkPerson;

	// 生产厂家
	private String producer;

	// 产品编号
	private String projectCode;

	// 交付物名称
	private String name;

	// 批次号
	private String batchNo;

	// 规格参数
	private String spec;

	// 单位
	private String unit;

	// 交付数量
	private Float deliveryNumber;

	// 交付日期
	private Date deliveryDate;

	// 我方经手人
	private String ourHandler;

	// 对方经手人
	private String customerHandler;

	// 交付地点
	private String deliveryAddress;

	// 交付方式
	@ManyToOne
	@JoinColumn(name = "DeliveryWayID")
	private DeliveryWay deliveryWay;

	// 交付物类型
	@ManyToOne
	@JoinColumn(name = "ProjectDeliveryTypeID")
	private ProjectDeliveryType projectDeliveryType;

	// 凭证号码
	private String voucherNo;

	// 备注
	private String remark;

	// 录入时间
	private Date inputTime;

	// 审核时间
	private Date checkTime;

	// 状态
	private String status;

	// 保修期限
	private String warrantyDate;

	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public People getInputPerson() {
		return inputPerson;
	}

	public void setInputPerson(People inputPerson) {
		this.inputPerson = inputPerson;
	}

	public People getCheckPerson() {
		return checkPerson;
	}

	public void setCheckPerson(People checkPerson) {
		this.checkPerson = checkPerson;
	}

	public String getProducer() {
		return producer;
	}

	public void setProducer(String producer) {
		this.producer = producer;
	}

	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Float getDeliveryNumber() {
		return deliveryNumber;
	}

	public void setDeliveryNumber(Float deliveryNumber) {
		this.deliveryNumber = deliveryNumber;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public String getOurHandler() {
		return ourHandler;
	}

	public void setOurHandler(String ourHandler) {
		this.ourHandler = ourHandler;
	}

	public String getCustomerHandler() {
		return customerHandler;
	}

	public void setCustomerHandler(String customerHandler) {
		this.customerHandler = customerHandler;
	}

	public String getDeliveryAddress() {
		return deliveryAddress;
	}

	public void setDeliveryAddress(String deliveryAddress) {
		this.deliveryAddress = deliveryAddress;
	}

	public DeliveryWay getDeliveryWay() {
		return deliveryWay;
	}

	public void setDeliveryWay(DeliveryWay deliveryWay) {
		this.deliveryWay = deliveryWay;
	}

	public String getVoucherNo() {
		return voucherNo;
	}

	public void setVoucherNo(String voucherNo) {
		this.voucherNo = voucherNo;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getInputTime() {
		return inputTime;
	}

	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getWarrantyDate() {
		return warrantyDate;
	}

	public void setWarrantyDate(String warrantyDate) {
		this.warrantyDate = warrantyDate;
	}

	public ProjectDeliveryType getProjectDeliveryType() {
		return projectDeliveryType;
	}

	public void setProjectDeliveryType(ProjectDeliveryType projectDeliveryType) {
		this.projectDeliveryType = projectDeliveryType;
	}

}
